receivedMessages

fun ChatRoom.receivedMessages(): Flow<ChatMessage>

Flow of ChatMessage instances delivered to a ChatRoom. The message can be sent by any of the users in the room, including the current user.

Using this is equivalent to implementing ChatRoomListener.onMessageReceived method.

This is a cold flow constructed using callbackFlow API.